package cn.stylefeng.guns.modular.product.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 产品表
 * </p>
 *
 * @author jalor
 * @since 2019-10-20
 */
@TableName("product")
@ApiModel("产品")
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;

    /**
     * 编号
     */
    @TableField("code")
    @ApiModelProperty("编号")
    private String code;

    /**
     * 名称
     */
    @TableField("name")
    @ApiModelProperty("名称")
    private String name;

    /**
     * 状态
     */
    @TableField("status")
    @ApiModelProperty("状态")
    private Boolean status;

    /**
     * 删除状态[0=未删除,1=已删除]
     */
    @TableField("delete_status")
    @ApiModelProperty("删除状态[0=未删除,1=已删除]")
    private Boolean deleteStatus;

    /**
     * 创建人
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    @ApiModelProperty("创建人")
    private Long createUser;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @ApiModelProperty("创建时间")
    private Date createTime;

    /**
     * 最后更新人
     */
    @TableField("last_modified_user")
    @ApiModelProperty("最后更新人")
    private Long lastModifiedUser;

    /**
     * 最后更新时间
     */
    @TableField("last_modified_time")
    @ApiModelProperty("最后更新时间")
    private Date lastModifiedTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public Boolean getDeleteStatus() {
        return deleteStatus;
    }

    public void setDeleteStatus(Boolean deleteStatus) {
        this.deleteStatus = deleteStatus;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getLastModifiedUser() {
        return lastModifiedUser;
    }

    public void setLastModifiedUser(Long lastModifiedUser) {
        this.lastModifiedUser = lastModifiedUser;
    }

    public Date getLastModifiedTime() {
        return lastModifiedTime;
    }

    public void setLastModifiedTime(Date lastModifiedTime) {
        this.lastModifiedTime = lastModifiedTime;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", code=" + code +
                ", name=" + name +
                ", status=" + status +
                ", deleteStatus=" + deleteStatus +
                ", createUser=" + createUser +
                ", createTime=" + createTime +
                ", lastModifiedUser=" + lastModifiedUser +
                ", lastModifiedTime=" + lastModifiedTime +
                "}";
    }
}
